﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace SMG.Monitor.Domain.Models
{
    [Serializable]
    [XmlRoot("Templates", Namespace = "")]
    public class TemplateModel
    {
        [XmlElement("Template")]
        public List<Template> Templates { get; set; }
    }

    [Serializable]
    [XmlRoot("Template", Namespace = "")]
    public class Template {
        [XmlElement("TemplateId")]
        public String TemplateId { get; set; }
        [XmlElement("TemplateName")]
        public String TemplateName { get; set; }
        [XmlElement("TemplateFolder")]
        public String TemplateFolder { get; set; }

        [XmlArray("Channels")]
        [XmlArrayItem("Channel")]
        public List<String> Channels { get; set; }
    }
}
